<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="cn.netjava.jojo.BlogInfo;"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   
    <title>博客首页</title>
  
    <meta http-equiv="content-type" content="application/html; charset=UTF-8" />
    <link rel="stylesheet" type="text/css" href="css/style.css" media="screen, tv, projection" />
  </head>
  
  <body>
    <div id="container">
       
       <div id="front">                      
          <jsp:include page="front.jsp" /> 
	   </div> 
		 
      <div class="br"> </div>
       
     <div id="main">
       <div id="leftlist">
          <jsp:include page="left.jsp" />         
       </div>
      
       <div id="content">  
      
         <div class="blog">
            <table border=1 width=490 cellspacing=0 cellpadding=0>
               <tr height=12px><td><h3>&rsaquo; 梦中的你在何方</h3> </td></tr>
               <tr height=7px align="right"><td> by 小梦 20091112</td></tr>
               <tr height=172px><td> <p>1. The novelist had pondered over the contemplated novel for months before he put pen to paper.
                      小说家把他想写的那部小说思考了好几个月才动笔写。</p>
               <p> 2. I look at the swaying branches and ponder over the greatness of all things.
                      我凝望摇曳的树枝,沉思万物的伟大.</p> </td>
               </tr>
               <tr height=7px align="right"><td> 评论 回复</td></tr>
            </table>
         </div>
         
         <div class="blog">
            <table border=1 width=490 cellspacing=0 cellpadding=0>
               <tr height=12px><td><h3>&rsaquo; 美丽女孩在自己心中</h3></td></tr>
               <tr height=7px align="right"><td> by 小梦 20091112</td></tr>
               <tr height=172px><td><p>我是个美丽的女孩，心中充满着无限的希望</p>
               <p>  I look at the swaying branches and ponder over the greatness of all things.
                      我凝望摇曳的树枝,沉思万物的伟大.
               </p> </td>
               </tr> 
               <tr height=7px align="right"><td> 评论 回复</td></tr>
            </table>     
        </div>     
        
        <div class="blog">
           <table border=1 width=490 cellspacing=0 cellpadding=0>
             <tr height=12px><td><h3>&rsaquo; 你是我的<br></h3></td></tr>
             <tr height=7px align="right"><td> by 小梦 20091112</td></tr>
             <tr height=172px><td><p>自己为何不敢说出自己的想法呢？</p>
               
	         <p>我的梦，在远方，我的心，去追求。</p></td>
             </tr>
             <tr height=7px align="right"><td> 评论 回复</td></tr> 
           </table>
	    </div>	    	 
	     
      </div>
      
      <div id="information"> 
          <div class="newartical">	  
	          <table border=1 width=160 cellspacing=0 cellpadding=0>       
		      <tr height=12px><td><h3>博客排行榜</h3></td></tr>
		      <tr height=133px><td>
		        <table border=1 width=158 cellspacing=0 cellpadding=0>
		           <tr><td><a href="#">排名1</a></td><td>姓名</td></tr>
		           <tr><td><a href="#">排名2</a></td><td>姓名</td></tr>
		           <tr><td><a href="#">排名3</a></td><td>姓名</td></tr>
		           <tr><td><a href="#">排名4</a></td><td>姓名</td></tr>
		           <tr><td><a href="#">排名5</a></td><td>姓名</td></tr>
		           <tr><td><a href="#">排名6</a></td><td>姓名</td></tr>
		        </table>
		      </td></tr> 
		      <tr height=5px align="right"><td><a href="#">更多</a></td></tr>     
		      </table>
	      </div>   
      
	      <div class="newartical">	  	               
		      <div class="newartical-title"><h3>最新文章</h3></div>	
		      <div class="newartical-content">	      	       
		         <% List<BlogInfo> blogList =(List<BlogInfo>)session.getAttribute("sixblog"); 
		            if(null!=blogList){
		            	for(BlogInfo blog:blogList){
		            %>
		            <div class="list">
		                <ul><li><a href="#">
		                <% String blogTitle=blog.getBlogTitle();
		                   if(blogTitle.length()<3){%>
		                   <%= blog.getBlogTitle() %>
		                   <%} %></a></li></ul>
		            </div>
		            <div class="author">
		                <ul><li><a href="#"><%= blog.getUser().getUserName() %></a></li></ul>
		            </div>
		            <%		
		            	}
		            }else{%>
		               没有取到文章
		            <%} %>
		      </div> 
		      <div class="newartical-foot">更多</div>		          
	        </div>   
      </div>

      
      <div class="br"></div>          
      </div>   
    
          
    <div id="footer">
           <p><span class="large"></span>&nbsp;CopyRight @ 2009-2012 All Rights Reserved <br> 
    		版权所有:长沙蒋于亭</p>
     </div>
  </div>
    
  </body>
</html>
